<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			try {
				const value = uni.getStorageSync('storage_key');
				if (value) {
					console.log(value);
				} else {
					uni.reLaunch({url:'/pages/login/login'})
				}
			} catch (e) {
				// error
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		// 最后一个页面按下Android back键,返回false阻止默认行为，返回true继续执行默认行为, 常用于自定义退出
		onLastPageBackPress: function() {
			console.log('onLastPageBackPress')
			return true
		},
		// 监听应用退出	
		onExit: function() {
			console.log('onExit')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
</style>
